package com.develop.archives.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.develop.archives.dao.CompactDao;
import com.develop.archives.domain.CompactDO;
import com.develop.archives.service.CompactService;



@Service
public class CompactServiceImpl implements CompactService {
	@Autowired
	private CompactDao compactDao;
	
	@Override
	public CompactDO get(String compactnum){
		return compactDao.get(compactnum);
	}
	
	@Override
	public List<CompactDO> list(Map<String, Object> map){
		return compactDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return compactDao.count(map);
	}
	
	@Override
	public int save(CompactDO compact){
		return compactDao.save(compact);
	}
	
	@Override
	public int update(CompactDO compact){
		return compactDao.update(compact);
	}
	
	@Override
	public int remove(String compactnum){
		return compactDao.remove(compactnum);
	}
	
	@Override
	public int batchRemove(String[] compactnums){
		return compactDao.batchRemove(compactnums);
	}
	
}
